package com.jade.zsy.finance.entity;

import com.jade.bss.db.IdEntity;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Created with IntelliJ IDEA.
 * User: jinya
 * Date: 2017/6/21
 * Time: 21:59
 * TEL :17701640710   MAIL:2009_jinya@163.com
 * To change this template use File | Settings | File Templates.
 */
@Data
@Entity
@Table(name = "ZSY_FIN_INVOICE")
public class Invoice extends IdEntity {
    public static int INVOCIE_SALES=1;
    @Column(name = "type", nullable = false,updatable = true,length = 100)
    private int type=0;//开票类型 1：销售开票
    @Column(name = "partnerId", nullable = false,updatable = true,length = 100)
    private long partnerId=0;//客户对象
    @Column(name = "title", nullable = false,updatable = true,length = 100)
    private String title;//开票抬头
    @Column(name = "invoiceDate", nullable = false,updatable = true,length = 100)
    private String invoiceDate;//开票日期
    @Column(name = "invoiceNo", nullable = false,updatable = true,length = 100)
    private String invoiceNo;//发票号码
    @Column(name = "amount", nullable = false,updatable = true,length = 100)
    private BigDecimal amount=new BigDecimal(0);//开票金额
    @Column(name = "remark", nullable = true,updatable = true,length = 100)
    private String remark;//开票备注

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(long partnerId) {
        this.partnerId = partnerId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getInvoiceDate() {
        return invoiceDate;
    }

    public void setInvoiceDate(String invoiceDate) {
        this.invoiceDate = invoiceDate;
    }

    public String getInvoiceNo() {
        return invoiceNo;
    }

    public void setInvoiceNo(String invoiceNo) {
        this.invoiceNo = invoiceNo;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
}
